const name = '{"test":"leslie"}';
const jsonName = JSON.parse(name);
console.log(jsonName);